import { Controller, Get } from '@nestjs/common';
import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';

import { Response } from '../infra/schema/response';
import { Public } from './auth/auth.decorator';

@ApiTags('health')
@Controller()
export class HeathCheckController {
  @Public()
  @Get('heathcheck')
  @ApiOperation({ summary: 'heathcheck' })
  @ApiResponse({ type: Response<string> })
  async heathcheck(): Promise<Response> {
    return Response.success('OK');
  }
}
